package org.example.service.authorization.client;

import com.bianmaba.spring.web.service.BaseService;
import org.example.bean.entity.authorization.Client;
import org.example.repository.authorization.client.ClientRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by cwx183898 on 2017/8/9.
 */
@Service
public class ClientService extends BaseService<Client, String> implements IClientService {
    @Autowired
    private ClientRepository repository;

    @Override
    public ClientRepository getRepository() {
        return repository;
    }

    @Override
    public Client findByClientId(String clientId) {
        return getRepository().findByClientId(clientId);
    }
}
